home *** CD-ROM | disk | FTP | other *** search
- on setTextLineHeight
- global textLineHeight
- if the machineType = 256 then
- set textLineHeight to 16
- else
- set textLineHeight to 16
- end if
- end
-
- on setBrowserLineHeight
- global browserLineHeight
- if the machineType = 256 then
- set browserLineHeight to 18
- else
- set browserLineHeight to 20
- end if
- end
-
- on setFieldFont whichField
- if the machineType = 256 then
- set the textFont of cast whichField to "Times"
- else
- set the textFont of cast whichField to "Palatino"
- end if
- end
-
- on setBrowserAttributes
- global browserLineHeight, bkgndColor, textColor
- setFieldFont("browser")
- set the textHeight of cast "browser" to browserLineHeight
- set the textSize of field "browser" to 12
- set the backColor of cast "browser" to bkgndColor
- set the foreColor of cast "browser" to textColor
- end
-
- on setTitleAttributes
- set the textSize of field "Topic Title" to 18
- set the textStyle of field "Topic Title" to "plain"
- setFieldFont("Topic Title")
- end
-
- on setTopicTextAttributes fieldName
- global clickedTopic, textColor, bkgndColor, textLineHeight
- set the backColor of cast fieldName to bkgndColor
- set the foreColor of cast fieldName to textColor
- setFieldFont(fieldName)
- set the textHeight of cast fieldName to textLineHeight
- end
-
- on setHilitTopicAttributes
- global hilitBackground, hilitforeground
- setFieldFont("hilitTopic")
- set the textHeight of cast "hilitTopic" to the textHeight of cast "browser"
- set the textSize of field "hilitTopic" to the textSize of field "browser"
- set the backColor of cast "hilitTopic" to hilitBackground
- set the foreColor of cast "hilitTopic" to hilitforeground
- set the textStyle of cast "hilitTopic" to "bold"
- end
-